package com.ysyx.ysyx_admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ysyx.ysyx_admin.pojo.OrderPojo;
import com.ysyx.ysyx_admin.qo.OrderQo;
import com.ysyx.ysyx_admin.service.OrderPojoService;
import com.ysyx.ysyx_admin.mapper.OrderPojoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【order_inf(订单表)】的数据库操作Service实现
* @createDate 2023-04-19 09:42:13
*/
@Service
public class OrderPojoServiceImpl
    implements OrderPojoService{


    @Autowired
    private OrderPojoMapper orderPojoMapper;
    @Override
    public List<OrderQo> showDriver(OrderQo qo) {
        System.out.println(qo);
        List<OrderQo> orderQos = orderPojoMapper.showDriver(qo);
        return orderQos;
    }

    @Override
    public int orderCount() {
        int num = orderPojoMapper.orderCount();
        return num;
    }
}




